﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using TKA.Helper;

namespace TKA.Model
{
    public class TrackVideo
    {
        public TrackVideo()
        {
            WestThroat = new Camera();
            EastThroat = new Camera();
            Track = new List<TwoCamera>();
        }

        public TwoCamera TakeCameraConfigByTrackNum(int tracknum)
        {
            int index=0;
            if (tracknum == 15) {
                index = 0;
            }
            else if (tracknum == 13)
            {
                index = 1;
            }
            else if (tracknum == 11)
            {
                index = 2;
            }
            else if (tracknum == 9)
            {
                index = 3;
            }
            else if (tracknum == 7)
            {
                index = 4;
            }
            else if (tracknum == 5)
            {
                index = 5;
            }
            else if (tracknum == 6)
            {
                index = 6;
            }
            else if (tracknum == 8)
            {
                index = 7;
            }
            else if (tracknum == 10)
            {
                index = 8;
            }
            else if (tracknum == 12)
            {
                index = 9;
            }
            return Track[index];
        }
        public Camera WestThroat { get; set; }
        public Camera EastThroat { get; set; }
        public List<TwoCamera> Track { get; set; }
    }

    public class TwoCamera
    {
        public TwoCamera()
        {
            West = new Camera();
            East = new Camera();
        }

        public Camera West { get; set; }
        public Camera East { get; set; }
    }
}
